import request from '@/utils/request'

// 查询瓶装水扭矩测试记录列表
export function listTorque_main(query) {
  return request({
    url: '/Productionline/torque_main/list',
    method: 'get',
    params: query
  })
}

// 查询瓶装水扭矩测试记录详细
export function getTorque_main(id) {
  return request({
    url: '/Productionline/torque_main/' + id,
    method: 'get'
  })
}

// 新增瓶装水扭矩测试记录
export function addTorque_main(data) {
  return request({
    url: '/Productionline/torque_main',
    method: 'post',
    data: data
  })
}

// 修改瓶装水扭矩测试记录
export function updateTorque_main(data) {
  return request({
    url: '/Productionline/torque_main',
    method: 'put',
    data: data
  })
}
export function checkTorque_main(data) {
  return request({
    url: '/Productionline/torque_main/check',
    method: 'put',
    data: data
  })
}
// 删除瓶装水扭矩测试记录
export function delTorque_main(id) {
  return request({
    url: '/Productionline/torque_main/' + id,
    method: 'delete'
  })
}

// 获取品项
export function getPx() {
  return request({
    url: '/Productionline/inspection_main/getPx',
    method: 'get'
  })
}
